package com.pucong.gitee.database.backup.business.service.service;

import com.pucong.gitee.database.backup.common.entity.service.ServiceComputer;
import com.pucong.gitee.database.backup.common.entity.service.dto.ServiceComputerContnectTestDto;
import com.pucong.gitee.database.backup.common.entity.service.dto.ServiceComputerSaveDto;

public interface ServiceComputerService {

    /**
     * 新增和修改
     * @param dto
     * @return
     */
    int saveBaseInfo(ServiceComputerSaveDto dto);

    /**
     * 根据主键查询
     * @param id
     * @return
     */
    ServiceComputer getServiceComputeById(String id);

    /**
     * 连接测试
     * @param dto
     * @return
     */
    boolean connectTest(ServiceComputerContnectTestDto dto);
}
